package com.nineclock.common.exception;

import com.nineclock.common.enums.ResponseEnum;
import lombok.Getter;

/**
 * @author 黑马程序员
 * @Company http://www.ithiema.com
 * @Version 1.0
 */
@Getter
public class NcException extends RuntimeException {
    private Integer code;
    public NcException(ResponseEnum responseEnum) {
        super(responseEnum.getMessage());
        this.code = responseEnum.getCode();
    }
}
